<LINK title=win2k-1 media=all href="file/calendar-win2k-1.css" type=text/css rel=stylesheet>
<SCRIPT src="file/calendar.js" type=text/javascript></SCRIPT>  
<SCRIPT src="file/calendar-setup.js" type=text/javascript></SCRIPT>
<SCRIPT src="file/calendar-en.js" type=text/javascript></SCRIPT>


<script type="text/javascript" src="<?=APPLICATION_SITEADMIN_URL?>fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="<?=APPLICATION_SITEADMIN_URL?>fckeditor/ewp.js"></script>
<script type="text/javascript">
<!--
	_width_multiplier = 16;
	_height_multiplier = 30;
	var EW_DHTMLEditors = [];
	function EW_UpdateTextArea() {
		if (typeof EW_DHTMLEditors != 'undefined') {
			if (FCKeditorAPI) {
				var inst;			
				for (inst in FCKeditorAPI.__Instances)
					FCKeditorAPI.__Instances[inst].UpdateLinkedField();
			}
		}
	}

//-->


</script>

<?
	$table = "banner";
	$mod = $_GET['mod'];
	$numadd = 1;	
	if(isset($_POST['numadd']))
		$numadd = $_POST['numadd'];	
	$title_add = '"Banner"';
?>

<script type="text/JavaScript">
	function checkinput()
	{
		
		return true;
	}
	
	function save()
	{
		var frm=document.frmadd;		
		if(checkinput())
		{
			frm.action="?mod=<?=$mod?>&act=process";
			frm.method="POST";
			frm.submit();
		}
	}
	
	function resetfrom()
	{
	   document.frmedit.reset();
	   
	}	
	
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
	  <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="34"><img src="<?=APPLICATION_SITEADMIN_URL?>images/cor_data_top_l.gif" alt="tl" width="34" height="19" /></td>
			<td class="toptborder">&nbsp;</td>
			<td width="20"><img src="<?=APPLICATION_SITEADMIN_URL?>images/cor_data_top_r.gif" alt="tr" /></td>
		  </tr>
	  </table></td>
	</tr>
	<tr>
	  <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="10" class="leftborder">&nbsp;</td>
			<td><table width="100%" border="0" cellpadding="0" cellspacing="2" class="dataBack">
			  <tr>
				<td width="55%" height="36" class="titleOrange"><?=$title_add?></td>
				<td align="right" valign="middle" class="titleOrange">&nbsp;</td>
			  </tr>			  
			  <tr>
				<td height="7" colspan="2" background="images/cor_data_line1.gif"></td>
			  </tr>
			  <tr>
				<form name="frmadd" method="post" enctype="multipart/form-data" onSubmit="return checkinput();">
				<td  colspan="2" ><table width="100%" border="0" cellspacing="0">	
				  <?php
				  for($i=1; $i<=$numadd; $i++)
				  {
				  ?>				  
				  <tr>
					<td width="19%" align="right" valign="top">Image (1600px*400px) : </td>
					<td ><input type="file" name="image_<?=$i?>" /></td>
				  </tr>
				  <tr>
				  	<td colspan="2">&nbsp;</td>
				  </tr>	
				  <?php
				  }
				  ?>
				  
				  <tr>
					<td height="35" align="right" valign="top">&nbsp;</td>
					<td align="left" valign="middle"><img src="images/icons/save.png" onClick="save();" class="pointer" />
					  <input name="" type="reset" class="frmbnt" value="Reset" onClick="resetfrom()" style="display:none" /></td>
				  </tr>
				</table>
				<input type="hidden" name="form_" value="add"><input type="hidden" name="numadd" value="<?=$numadd?>">
				</td>
				</form>
			 </tr>
		   </table>
		   </td>
		   <td width="10" class="rightborder">&nbsp;</td>
		 </tr>
	  </table></td>
	</tr>
	<tr>
	  <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dataBack">
		  <tr>
			<td width="34"><img src="<?=APPLICATION_SITEADMIN_URL?>images/cor_data_bot_l.gif" alt="bl" /></td>
			<td class="botborder" >&nbsp;</td>
			<td width="19"><img src="<?=APPLICATION_SITEADMIN_URL?>images/cor_data_bot_r.gif" alt="br" /></td>
		  </tr>
	  </table></td>
	</tr>
</table>

<script type="text/javascript">
<!--
	EW_createEditor();  // Create DHTML editor(s)

//-->
</script>